/**********************
* TYPEDEFS		      *
**********************/
#ifndef __TYPEDEF_H__
#define __TYPEDEF_H__
#define BYTE		unsigned char
#define INT8  		signed char 
#define UINT8 		unsigned char
#define U8 		    unsigned char
#define INT16 		signed int
#define UINT16 		unsigned int
#define U16 		unsigned int
#define WORD        unsigned int
#define INT32 		signed long
#define UINT32 		unsigned long
#define U32 		unsigned long
#define DWORD 		unsigned long


#define FALSE       0
#define TRUE        1
#define false       0
#define true        1

#define LOW                         0
#define HIGH                        1

#define MAKEWORD(h, l)				(((U16)(h) << 8) | (U16)(l))
#define MAKELONG(hh, hl, lh, ll)	(((U32)MAKEWORD(hh,hl) << 16) | (U32)MAKEWORD(lh,ll))

typedef union {
	U8  B[2];
	U16 W;
}WB;

#endif
